Installing an Adapter
The adapter installation file contains an assets directory containing:
-
airflow_plugin_v1: Directory containing the plugin files required for Airflow 1.0
-
airflow_plugin_v2: Directory containing the plugin files required for Airflow 2.0
-
dags directory: Tidal wrapper DAGs for supporting special functionality of the adapter:
tidal_task_executor.py DAG supports triggering separate tasks in Airflow 1.0
tidal_task_exector_v2.py DAG supports triggering and canceling separate tasks in Airflow 2.0
Installing the adapter and a Tidal Bridge for Apache Airflow 1.0
Note: For Airflow 1.0 install a Tidal Bridge on the Airflow Server.
To install the Tidal Bridge for Airflow 1.0:
-
Download the airflowplugin.zip plugin from the Tidal Support Center Downloads (Tidal Customer Portal > Support Center > Downloads) section.
-
Unzip the airflowplugin.zip file. The unzipped file contains an assets directory with the airflow_plugin_v1, airflow_plugin_v2, and dags sub-directories.
-
Copy the contents of the airflow_plugin_v1 directory to the Airflow plugin directory (airflow/plugins, for example).
-
Copy the tidal_task_executor.py file to the Airflow DAG directory (airflow/dags, for example).
-
Restart the Airflow Server and Airflow Scheduler.
Installing the adapter for Apache Airflow 2.0 in Google Cloud
Note: For Airflow 2.0 using Google Cloud install only the Tidal wrapper DAG.
Optional but recommended prerequisites
Airflow Configuration Overrides are required to connect the adapter. On the Airflow side configure
Note: When you first run Apache Airflow, the configuration properties are saved in the airflow.cfg file.
-
Required: Enables the connection
webserver->expose_config = true
-
Optional: Allows spaces in the connection definition and job names
scheduler->allowed_run_id_patters = ^[ A-Za-z0-9_.~:+-]+$
Note: Pay attention to the space between "[" and "A" when configuring the settings. This space is important for the proper functioning of the configuration.
To install the adapter for Airflow 2.0 in Google Cloud:
-
Download the airflowplugin.zip plugin from the Tidal Support Center Downloads (Tidal Customer Portal > Support Center > Downloads) section.
-
Unzip the airflowplugin.zip file. The unzipped file contains an assets directory with the airflow_plugin_v1, airflow_plugin_v2 , and dags sub-directories.
-
Copy the tidal_task_executor_v2.py file to the Airflow DAG directory (airflow/dags, for example).
-
Restart the Airflow Server and Airflow Scheduler.
Installing the adapter and a Tidal Bridge for Apache Airflow 2.0 in an on-premise environment
Note: For Airflow 2.0 in an on-premise environment install a Tidal Bridge on the Airflow Server.
To install the Tidal Bridge for Airflow 2.0 in an on-premise environment:
-
Download the airflowplugin.zip plugin from the Tidal Support Center Downloads (Tidal Customer Portal > Support Center > Downloads) section.
-
Unzip the airflowplugin.zip file. The unzipped file contains an assets directory with the airflow_plugin_v1, airflow_plugin_v2 , and dags sub-directories.
-
Copy the contents of the airflow_plugin_v2 directory to the Airflow plugin directory (airflow/plugins, for example).
-
Copy the tidal_task_executor_v2.py file to the Airflow DAG directory (airflow/dags, for example).
-
Restart the Airflow Server and Airflow Scheduler.